(function (angular) {
    angular.module('app').controller('ditalController',['$scope','$stateParams',function ($scope,$stateParams) {
        $scope.content = $scope.res[$stateParams.id].content

        console.log($scope.content);

    }])
})(angular);
